/**
 * @author scylla
 * @version V1.0
 * @Project echo-java-base
 * @Title 线程池
 * @Description *
 * @Package concurrent.mthread.executors
 * @Since 2021/7/26 5:18 下午
 */
package concurrent.mthread.executors;

import concurrent.mthread.liftoff.LiftOff;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class CacheThreadPool {

    public static void main(String[] args) {
        ExecutorService exec = Executors.newCachedThreadPool();

        for (int i = 0; i < 5; i++)
            exec.execute(new LiftOff());

        exec.shutdown();
    }
}
